﻿// 项目：	Guan.CMS.Data - Guan.CMS
// 文件名：	SiteConfigConfiguration.cs
// 
// 修改时间：2013-03-06 21:13
// 修改人：	Cooclsee

using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using Guan.CMS.Model.Entities;

namespace Guan.CMS.Data.Configurations
{
    public class SiteConfigConfiguration : EntityTypeConfiguration<SiteConfig>
    {
        public SiteConfigConfiguration()
        {
            ToTable("SiteConfig");
            Property(c => c.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            Property(s => s.SiteName).HasMaxLength(100);
            Property(s => s.Footer).HasMaxLength(1024);
            Property(s => s.StatisticsCode).HasMaxLength(1024);
            Property(s => s.MetaKeywords).HasMaxLength(1024);
            Property(s => s.MetaDescription).HasMaxLength(2048);
        }
    }
}